LOCAL_PATH := $(call my-dir)

#
# FMOD Ex Shared Library
# 
include $(CLEAR_VARS)

LOCAL_MODULE            := fmodex
LOCAL_SRC_FILES         := fmodex/$(TARGET_ARCH_ABI)/libfmodex.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/fmodex/inc

include $(PREBUILT_SHARED_LIBRARY)

#
# Guitar Track Trainer Library
#
include $(CLEAR_VARS)

LOCAL_MODULE           := main
LOCAL_SRC_FILES        := main.cpp SoundTouch/AAFilter.cpp  SoundTouch/FIFOSampleBuffer.cpp \
                       SoundTouch/FIRFilter.cpp SoundTouch/cpu_detect_x86.cpp \
                       SoundTouch/RateTransposer.cpp SoundTouch/SoundTouch.cpp \
                       SoundTouch/TDStretch.cpp SoundTouch/BPMDetect.cpp SoundTouch/PeakFinder.cpp \
				       SoundTouch/InterpolateCubic.cpp SoundTouch/InterpolateLinear.cpp \
				       SoundTouch/InterpolateShannon.cpp fmodex/$(TARGET_ARCH_ABI)/libfmodex.so
LOCAL_LDLIBS 		   := -llog -landroid
LOCAL_SHARED_LIBRARIES := fmodex
LOCAL_CFLAGS           += -Wall -fvisibility=hidden -I $(LOCAL_PATH)/include -D ST_NO_EXCEPTION_HANDLING -fdata-sections -ffunction-sections -marm
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/includeandroid

include $(BUILD_SHARED_LIBRARY)
